package lex.dm.ui.actions;

import java.awt.Window;
import java.awt.event.ActionEvent;

import org.lex.swing.ActionBuilder;

import lex.dm.DTree;
import lex.dm.ui.dt.DecisionTreeDialog;

public class DecisionTreeAction extends ActionBuilder
{
	public DecisionTreeAction()
	{
		super();
		this.setName( "Create Decision Tree" );
	}

	@Override
	public void actionPerformed( ActionEvent e )
	{
		Window root = DTree.getApplication().getRootWindow();
		DecisionTreeDialog d = new DecisionTreeDialog( root );
		d.setLocationRelativeTo( root );
		d.setVisible( true );
	}
}
